import request from '@/utils/request'

const api_name = '/admin/kywMenu'
// 分页列表
export const FindNodes = () => {
    return request({
        url: `${api_name}/findNodes`,
        method: 'get',
    })
}

//添加
export const SaveMenu = (data) => {
    return request({
        url: `${api_name}/sava`,
        method: 'post',
        data
    })
}
// 修改信息
export const UpdateSysMenuById = kywMenu => {
    return request({
        url: `${api_name}/updateById`,
        method: 'put',
        data: kywMenu,
    })
}

// 根据id删除数据
export const RemoveSysMenuById = id => {
    return request({
        url: `${api_name}/removeById/${id}`,
        method: 'delete',
    })
}